package com.lagou.module4.model;

public class Student {
    //私有化成员变量
    private int ID;
    private String name;
    private String sex;
    private String birth_date;
    private String email;
    private String comment;
    //两种构造方法
    public Student() {
    }
    public Student(int ID, String name, String sex, String birth_date, String email, String comment) {
        this.ID = ID;
        this.name = name;
        this.sex = sex;
        this.birth_date = birth_date;
        this.email = email;
        this.comment = comment;
    }
    //公有的get，set方法
    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirth_date() {
        return birth_date;
    }

    public void setBirth_date(String birth_date) {
        this.birth_date = birth_date;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "Student{" +
                "ID=" + ID +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birth_date='" + birth_date + '\'' +
                ", email='" + email + '\'' +
                ", comment='" + comment + '\'' +
                '}';
    }
}
